from server.web.controllers.graph.detail import route_graph_detail
from server.web.controllers.graph.describe import route_graph_describe
from server.web.controllers.activity.activity import route_activity
from server.web.controllers.algorithm.pathPlanning import route_path_planning
from server.web.controllers.algorithm.antAlgorithm import route_ant_algorithm
from server.web.controllers.algorithm.geneticAlgorithm import route_genetic_algorithm
from server.web.controllers.common import route_common

from server.app import app

'''
统一拦截器
'''
# from web.interceptors.AuthInterceptor import *
# from web.interceptors.ApiAuthInterceptor import *

'''
蓝图功能，对所有的url进行蓝图功能配置
'''
app.register_blueprint(route_graph_detail, url_prefix="/graph/detail")
app.register_blueprint(route_graph_describe, url_prefix="/graph/describe")
app.register_blueprint(route_activity, url_prefix="/activity")
app.register_blueprint(route_path_planning, url_prefix="/algorithm")
app.register_blueprint(route_ant_algorithm, url_prefix="/algorithm/ant")
app.register_blueprint(route_genetic_algorithm, url_prefix="/algorithm/genetic")

app.register_blueprint(route_common, url_prefix="")

